package com.smarty.net;

import lombok.extern.slf4j.Slf4j;

import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;

@Slf4j
public class Test {
    static {
        System.setProperty("javax.net.debug", "all");
    }
    public static void main(String[] args) throws Exception {
        SSLEngine sslEngine=SSLContext.getDefault().createSSLEngine();
        sslEngine.setUseClientMode(true);
        sslEngine.beginHandshake();
        log.info(String.valueOf(sslEngine.getHandshakeStatus()));
    }
}
